def calculate_and_print(num,calculate):
    result = calculate(num)
    print(f"""
    |数字参数| {num}|
    |计算结果| {result}|""")

def calculate_times_5(num):
    return num*5

calculate_and_print(2,calculate_times_5)


calculate_and_print(2,lambda num: num*5)